<%--
  Created by IntelliJ IDEA.
  User: lujw
  Date: 2017/6/16
  Time: 17:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/validate.jsp"%>
<%@ include file="/common/hospital_notice.jsp"%>
<%
    //再次推送
    Integer noticeId = input.getInt("notice_id", -1);
    List<HospitalNotice> noticeList = QBuilder.db("basedb").select().from("HospitalNotice").where(new Where("id=", noticeId).and("status=", ConstantUtil.STATUS_ENABLE).and("hospital=", hospital)).query().getResultObj();
    if (noticeList.size() == 0) {
        msg.setErrcodeAndErrmsg(30999, "没有这条通知");
        Tools.encryptPrint(out, msg);
        return;
    }
    List<String> uidList = QBuilder.db("basedb").select("concat(userId, '')").from("HospitalNoticeFeedback").where(new Where("noticeId=", noticeId).and("status=", ConstantUtil.STATUS_ENABLE).and("hospital=", hospital).and("readTime is null")).query().getResultObj();
    if (Objects.isNull(isDev))
        isDev = isDev(input);
    pushAll(isDev, uidList, noticeList.get(0));
    Tools.encryptPrint(out, msg);
%>
